package edu.sias.pojo;

//信息实体
public class Post {
    //主键
    private int id;
    //标题
    private String title;
    //内容
    private String text;
    //点击量
    private Integer click;
    //访问地址
    private String url;
    //表示文章的类别
    private int category_id;
    //文章的分类
    private String c_name;

    public Post(int id, String title, String text, Integer click, String url, int category_id, String c_name) {
        this.id = id;
        this.title = title;
        this.text = text;
        this.click = click;
        this.url = url;
        this.category_id = category_id;
        this.c_name = c_name;
    }

    public String getC_name() {
        return c_name;
    }

    public void setC_name(String c_name) {
        this.c_name = c_name;
    }

    public int getCategory_id() {
        return category_id;
    }

    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    public Post() {
    }

    public Post(int id, String title, String text, Integer click, String url) {
        this.id = id;
        this.title = title;
        this.text = text;
        this.click = click;
        this.url = url;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getClick() {
        return click;
    }

    public void setClick(Integer click) {
        this.click = click;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "Post{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", text='" + text + '\'' +
                ", click=" + click +
                ", url='" + url + '\'' +
                '}';
    }
}
